import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

import App from '@/App.vue'
import router from '@/router'
// 全局引入 css 文件，消除自带 margin 样式
import '@/assets/main.css'
// 全局引入 animate.css
import 'animate.css/animate.min.css'

// 配置持久化存储插件 pinia-plugin-persist
const pinia = createPinia()
pinia.use(piniaPersist)

const app = createApp(App)
app.use(pinia)
app.use(router)
app.mount('#app')